package cn.itsource.org.mapper;

import cn.itsource.basic.vo.ShopVo;
import cn.itsource.org.domain.Shop;
import cn.itsource.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mochen
 * @since 2023-01-06
 */
public interface ShopMapper extends BaseMapper<Shop> {

    Shop loadByShopName(String name);

    void updateStateByShopId(@Param("shopId") Long shopId, @Param("state")Integer state);

    void rejectStateByShopId(@Param("shopId") Long shopId, @Param("state")Integer state);

    List<ShopVo> loadStateStatistics();
}
